package com.seocoo.worker.user.account.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.seocoo.worker.R;
import com.seocoo.worker.user.account.entity.EDepositDesc;

/***
 * 提现明细
 */
public class DepositListAdapter extends BaseQuickAdapter<EDepositDesc, BaseViewHolder> {
    public DepositListAdapter() {
        super(R.layout.user_deposit_adapter);
    }

    @Override
    protected void convert(BaseViewHolder helper, EDepositDesc item) {

        // 1-审核中 2-提现成功 3-提现失败
        helper.setText(R.id.tv_name, item.depositState == 1 ? "审核中" : item.depositState == 2 ? "提现成功" : "提现失败");
        helper.setText(R.id.tv_size, "-" + item.money);
        helper.setText(R.id.tv_date, item.createdTime);
    }
}
